package com.futvan.z.system.zfile;
import org.springframework.stereotype.Service;
import org.springframework.web.multipart.MultipartFile;

import com.futvan.z.framework.core.SuperService;
import com.futvan.z.framework.core.z;
import com.futvan.z.framework.util.SystemUtil;
@Service
public class ZfileService extends SuperService{

	public void save(String fileReturnPath,String filepath,String serverurl,MultipartFile file) {
		insert("INSERT INTO z_file (zid,filename,filepath,serverurl,allpath)VALUES ('"+z.newZid("z_file")+"','"+file.getOriginalFilename()+"','"+"/files/"+filepath+"/"+file.getOriginalFilename()+"','"+serverurl+"','"+fileReturnPath+"')");
	}
}
